import request from '@/utils/request'

// 查询预存款充值列表
export function listYckchongzhi(query) {
  return request({
    url: '/yucunkuan/yckchongzhi/list',
    method: 'get',
    params: query
  })
}

// 查询预存款充值详细
export function getYckchongzhi(id) {
  return request({
    url: '/yucunkuan/yckchongzhi/' + id,
    method: 'get'
  })
}

// 新增预存款充值
export function addYckchongzhi(data) {
  return request({
    url: '/yucunkuan/yckchongzhi',
    method: 'post',
    data: data
  })
}

// 修改预存款充值
export function updateYckchongzhi(data) {
  return request({
    url: '/yucunkuan/yckchongzhi',
    method: 'put',
    data: data
  })
}

// 删除预存款充值
export function delYckchongzhi(id) {
  return request({
    url: '/yucunkuan/yckchongzhi/' + id,
    method: 'delete'
  })
}
